package com.mongoplus.solon;

import org.noear.solon.Solon;
import org.noear.solon.annotation.SolonMain;
import org.noear.solon.core.event.AppLoadEndEvent;

/**
 * @author JiaChaoYang
 **/
@SolonMain
public class MongoPlusSolonApplication {

    public static void main(String[] args) {
        Solon.start(MongoPlusSolonApplication.class, args, app->{
            app.onEvent(AppLoadEndEvent.class,event -> {
                System.out.println("添加一个用户 http://localhost:9527/addUser");
                System.out.println("查看所有用户 http://localhost:9527/findAllUser");
            });
        });
    }

}
